<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>布局练习</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul {
            list-style: none;
        }

        .top {
            background-color: gray;
            height: 40px;
        }

        .baner {
            background-color: bisque;
            height: 80px;
            width: 1200px;
            margin: 6px auto;
        }

        .detail {
            background-color: aqua;
            height: 400px;
            width: 1200px;
            margin: 0 auto;
        }

        .footer {
            background-color: gray;
            height: 80px;
            margin: 6px auto;
        }

        .detail .left {
            float: left;

            background-color: pink;
            height: 400px;
            width: 200px;
        }

        .detail .right {
            float: left;
            background-color: red;
            height: 400px;
            width: 1000px;
        }

        .right li {
            float: left;
            background-color: purple;
            width: 240px;
            height: 195px;
            margin-left: 10px;
            margin-bottom: 10px;
        }

        .right .second {
            margin-bottom: 0;
        }
    </style>
</head>

<body>
    <div class="top"></div>
    <div class="baner"></div>
    <div class="detail">
        <div class="left"></div>
        <div class="right">
            <ul>
                <li>1</li>
                <li>2</li>
                <li>3</li>
                <li>4</li>
                <li class="second">5</li>
                <li class="second">6</li>
                <li class="second">7</li>
                <li class="second">8</li>
            </ul>
        </div>
    </div>
    <div class="footer"></div>
</body>

</html>